package academic.ui.client.event;


import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public abstract class AbstractEvent
       <E extends GwtEvent<H>, H extends AbstractEvent.AbstractHandler<E>>
extends GwtEvent<H> {

       public static interface AbstractHandler<E> extends EventHandler {
               void handleEvent(E event);
       }

       @SuppressWarnings("unchecked")
       @Override
       protected void dispatch(H handler) {
               handler.handleEvent((E) this);
       }

       

}
